package org.example.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.example.entity.Dictionaries;

import java.util.List;

/**
 * @author wxm
 * @date 2025/3/3 14:53
 */
public interface DictionariesMapper extends BaseMapper<Dictionaries> {
    List<String> selectDataByParent(@Param("parentColumn") String parentColumn);

    List<String> selectAllParent();

    void insertParent(@Param("parentName") String parentName);

    void insertSon(@Param("parentName") String parentName,@Param("sonName") String sonName);

    Long selectIdByParentName(@Param("parentName") String parentName);
}
